<!-- 明日方舟选择卡片 -->
<template>
  <div style="display: flex">
    <div id="info_card">
      <!-- 背景容器 -->
      <div id="bg_container">
        <!-- 背景直接指向 -->
        <img src="/images/bg.png" />
        <!-- 背景下部透明效果 -->
        <div id="bg_bottom"></div>
      </div>
      <!-- 回退容器 -->
      <div id="back_container">
        <img src="/images/left.png" />
      </div>
      <!-- 立绘容器 -->
      <div id="portrait_container">
        <!-- 立绘图形指向 -->
        <img id="portrait_img" src="/images/0002.png" />
      </div>
      <!-- 左侧木偶容器 -->
      <div id="left_puppet">
        <!-- 左侧木偶内部 -->
        <div id="left_puppetInner">
          <!-- 图像直接指向 -->
          <img src="/images/miniBg.png" />
        </div>
        <img src="/images/mini.png" />
      </div>
      <!-- 右侧容器 -->
      <div id="right_container">
        <!-- 右侧底部项 -->
        <div id="right_topItem">
          <!-- 右侧底部项内部 -->
          <div id="right_topItemInner"></div>
          <!-- 右侧底部项图片 -->
          <div id="right_topItemImg">
            <!-- 图片指向 -->
            <img src="/images/0002.png" />
          </div>
        </div>
        <!-- 右侧居中项 -->
        <div id="right_centerItem">
          <div id="right_centerItemInner"></div>
          <div id="right_centerItemImg">
            <img src="/images/0002.png" />
          </div>
        </div>

        <!-- 右侧底部项 -->
        <div id="right_bottomItem">
          <!-- 右侧文本盒子 -->
          <div id="right_textBox">
            <!-- 右侧文本标题盒子 -->
            <div id="right_textTitleBox">
              <!-- 右侧文本标题 -->
              <div id="right_textTitle">DEFAULT</div>
              <!-- 右侧文本标题边框 -->
              <div id="right_textTitleBorder">OUTFIT</div>
            </div>
            <!-- 右侧文本信息盒子 -->
            <div id="right_textInfoBox">
              <!-- 右侧文本信息昵称 -->
              <div id="right_textInfoNick">
                <img src="/images/user.png" class="right_textInfoImg" />
                Amiya
              </div>
              <!-- 右侧文本信息作者 -->
              <div id="right_textInfoAuthor">
                <img src="/images/edit.png" class="right_textInfoImg" />
                唯@W
              </div>
            </div>
            <!-- 右侧文本注释盒子 -->
            <div id="right_textNoteBox">
              阿米娅最常穿着的服装，过大的尺寸似乎暗示了这件衣服不属于她
              <br />
              不少细节部分都经过手工改造,而时间的痕迹也多有残留。
            </div>
          </div>
          <!-- 右侧装饰 -->
          <div id="right_decoration"></div>
        </div>
      </div>
    </div>

    <div id="controller_card">
      <div id="portrait_controllerBox">
        <div id="portrait_controller" state="0">
          <img src="/images/0002.png" />
        </div>
        <div id="portrait_controller" state="1">
          <img src="/images/0003.png" />
        </div>
        <div id="portrait_controller" state="2">
          <img src="/images/0004.png" />
        </div>
        <div id="portrait_controllerBoxMark"></div>
      </div>
      <div id="controller_buttonBox">
        <img src="/images/hanger.png" />
        <div style="margin-bottom: 3px">当前穿着</div>
      </div>
      <div id="controller_topIndicator">
        <img src="/images/topDecoration.png" />
        <div class="note">DEFAULT OUTFIT</div>
        <div class="text">I</div>
      </div>
      <div id="controller_topDecoration">
        <div class="item" style="background-color: #303030"></div>
        <div class="item" style="background-color: #02c1a0"></div>
        <div class="item" style="background-color: #fa9906"></div>
        <div class="item" style="background-color: #102c98"></div>
      </div>
      <div id="controller_indicator">
        <img src="/images/Up-6.png" />
      </div>
      <div id="controller_noteText">更换装扮将会同时改变干员在其他页面的默认形象</div>
    </div>
  </div>
</template>

<script lang="ts" setup></script>

<style scoped>
@font-face {
  font-family: 'Novecento';
  src: url('/fonts/Novecento-wide-Light-2.ttf');
}

@font-face {
  font-family: 'SourceHanSansSc';
  src: url('/fonts/SourceHanSansSC-Light-2.otf');
}

#info_card {
  width: 800px;
  height: 500px;
  position: relative;
  box-shadow: 15px 0px 20px 15px rgba(0, 0, 0, 0.7);
}
#bg_container {
  height: 500px;
  /* overflow: hidden; */
  position: absolute;
}
#bg_container img {
  opacity: 0.9;
  width: 1150px;
  position: relative;
}
#bg_bottom {
  width: 800px;
  height: 100px;
  position: absolute;
  bottom: 0px;
  background: linear-gradient(to top, #fff, rgba(255, 255, 255, 0));
}

#back_container {
  position: absolute;
  width: 110px;
  height: 40px;
  background-color: #313131;
  top: 10px;
  left: 10px;
  display: flex;
  box-shadow: 0px 7px 10px 0px rgb(0 0 0 / 55%);
}
#back_container img {
  width: 30px;
  object-fit: contain;
  margin-left: 7px;
}

#portrait_container {
  height: 500px;
  width: 800px;
  position: absolute;
}
#portrait_img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  right: 50px;
}
#left_puppet {
  width: 130px;
  height: 130px;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: 120px;
  left: 35px;
}
#left_puppet::after,
#left_puppet::before {
  content: ' ';
  width: 30px;
  height: 30px;
  position: absolute;
  border: 0px solid #fff;
  transition: all 1s;
  z-index: 2;
}
#left_puppet::after {
  top: -1px;
  left: -1px;
  border-top: 20px solid #1b1b1b;
  border-left: 20px solid #1b1b1b;
}
#left_puppet::before {
  bottom: -1px;
  right: -1px;
  border-bottom: 20px solid #0097dc;
  border-right: 20px solid #0097dc;
}
#left_puppet img {
  position: absolute;
  /* width: ; */
  width: 340px;
  z-index: 99;
}

#left_puppetInner {
  /* width: 80; */
  width: 115px;
  height: 115px;
  background-color: #fff;
  overflow: hidden;
  position: relative;
}
#left_puppetInner img {
  width: 120px;
  object-fit: contain;
  position: absolute;
  z-index: 1;
}

#right_container {
  height: 500px;
  width: 180px;
  position: absolute;
  right: 20px;
  top: 20px;
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 10px;
}
#right_topItem {
  width: 100px;
  height: 100px;
  background-color: #fff;
  box-sizing: border-box;
  box-shadow: 0px 2px 3px 1px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}
#right_topItemImg {
  position: absolute;
  left: -230px;
  top: -70px;
}
#right_topItemImg img {
  width: 550px;
}

#right_topItemInner {
  width: 75%;
  height: 75%;
  position: relative;
  top: 12.5%;
  left: 12.5%;
  background-color: #ece7e7f3;
  box-sizing: border-box;
  box-shadow: 0px 3px 5px 1px rgba(0, 0, 0, 0.3) inset;
}
#right_centerItem {
  width: 100px;
  height: 200px;
  background-color: #fff;
  box-sizing: border-box;
  box-shadow: 0px 2px 3px 1px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

#right_centerItemImg {
  position: absolute;
  left: -235px;
  top: -55px;
}
#right_centerItemImg img {
  width: 560px;
}

#right_centerItemInner {
  width: 75px;
  height: 175px;
  position: relative;
  top: 12.5px;
  left: 12.5px;
  background-color: #ece7e7f3;
  box-sizing: border-box;
  box-shadow: 0px 3px 5px 1px rgba(0, 0, 0, 0.3) inset;
}
#right_bottomItem {
  width: 160px;
  height: 150px;
  background-color: #fff;
  display: flex;
}
#right_textBox {
  width: 137.5px;
  height: 140px;
  padding: 5px;
  padding-top: 1px;
  display: flex;
  flex-direction: column;
}
#right_textTitleBox {
  width: 127.5px;
  height: 40px;
}
#right_textTitle {
  height: 30px;
  font-size: 30px;
  font-family: Novecento;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
  position: relative;
  left: -2.5px;
}
#right_textTitleBorder {
  font-size: 10px;
  color: #fff;
  height: 13px;
  text-align: center;
  letter-spacing: 5.5px;
  background-color: black;
}
#right_textInfoBox {
  margin-top: 10px;
  margin-left: 2px;
  width: 125.5px;
  height: 30px;
  display: flex;
  flex-direction: column;
  background-color: black;
}
#right_textInfoNick {
  flex: 1;
  width: 100%;
  height: 15px;
  display: flex;
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  font-family: 'SourceHanSansSc';
  letter-spacing: 1px;
}
.right_textInfoImg {
  width: 13px;
  height: 13px;
  object-fit: contain;
}
#right_textInfoAuthor {
  flex: 1;
  width: 100%;
  height: 15px;
  display: flex;
  color: #fff;
  font-size: 9px;
  font-family: 'SourceHanSansSc';
  letter-spacing: 1px;
}
#right_textNoteBox {
  margin-top: 3px;
  margin-left: 2px;
  width: 125.5px;
  height: 49px;
  font-size: 9px;
  line-height: 10px;
  font-weight: bold;
  font-family: 'SourceHanSansSc';
  color: rgba(0, 0, 0, 0.9);
}
#right_decoration {
  width: 20px;
  height: 150px;
  background-color: #282828;
}

#controller_card {
  width: 350px;
  height: 500px;
  position: relative;
}

#portrait_controllerBox {
  width: 100px;
  height: 300px;
  position: relative;
  left: 120px;
  top: calc(50% - 170px);
}
#portrait_controllerBoxMark {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  /* background-color: red; */

  position: absolute;
  bottom: 0px;
  height: 80px;
  width: 185px;
  z-index: 99;
}

#portrait_controller {
  position: absolute;
  height: 300px;
  width: 100px;
  overflow: hidden;
  background-color: black;
  z-index: 10;
}
#portrait_controller[state='1'] {
  /* position: relative; */
  right: calc(50% - 100px);
  z-index: 9;
  opacity: 0.6;
}
#portrait_controller[state='1'] img {
  left: -260px;
}
#portrait_controller[state='2'] {
  /* position: relative; */
  right: calc(50% - 135px);
  z-index: 8;
  opacity: 0.3;
}
#portrait_controller[state='2'] img {
  left: -230px;
}

#portrait_controller img {
  width: 650px;
  object-fit: contain;
  position: relative;
  left: -285px;
  top: -50px;
}

#controller_buttonBox {
  width: 150px;
  height: 35px;
  background-color: #64abc9;
  position: absolute;
  bottom: 50px;
  left: calc(50% - 75px);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'SourceHanSansSc';
  font-size: 13px;
}
#controller_buttonBox img {
  width: 25px;
  position: absolute;
  left: 15px;
  top: 5px;
  /* font-weight: bold; */
}

#controller_topIndicator {
  width: 85px;
  height: 75px;
  /* background-color: #fff; */
  position: absolute;
  top: 0;
  left: 127.5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#controller_topIndicator img {
  position: absolute;
  z-index: 1;
}
#controller_topIndicator .note {
  position: absolute;
  z-index: 2;
  font-weight: bold;
  /* bottom: 6px; */
  top: 15px;
  opacity: 0.5;
  font-size: 6px;
}
#controller_topIndicator .text {
  position: relative;
  z-index: 2;
  font-weight: bold;
  bottom: -2px;
}
#controller_topDecoration {
  position: absolute;
  height: 4px;
  width: 137.5px;
  top: 0;
  left: calc(127.5px + 85px);
  /* border-bottom: 1px solid black; */
  display: flex;
}
#controller_topDecoration .item {
  flex: 1;
}

#controller_indicator {
  position: absolute;
  bottom: 95px;
  left: 162.5px;
}
#controller_indicator img {
  width: 15px;
}
#controller_noteText {
  font-size: 12px;
  position: absolute;
  bottom: 20px;
  left: 50px;
  font-family: 'SourceHanSansSc';
  font-weight: bold;
  opacity: 0.6;
}
</style>
